export default {

  /**
   * App版本管理涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   *
   * 版本列表
   * /sys/appversion/list
   */
  "POST /sys/appversion/list":  (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40,
        },
        list: [{
          id: 1,
          versionNum: '1.0.0',
          describe: '系统升级修改bug',
          uploadTime: 1515554892000,
        }, {
          id: 2,
          versionNum: '1.0.1',
          describe: '系统升级修改bug',
          uploadTime: 1515554892000,
        }],
      },
    });
  },


  /**
   *
   * 版本详情
   * /sys/appversion/detailinfo
   * @param  {string}  id      版本信息id流水号
   */
  "POST /sys/appversion/info": (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
      data:{
        versionNum: '1.0.0',
        describe: '系统升级修改bug',
        versionFile:[{
          uid: 'I100000000115',
          name: '2bb91d50f8b681a4e38370f2c94a2983.doc',
          url: 'http://dytdev.oss-cn-hangzhou.aliyuncs.com/upim-incubator/100000/project/10000000000014/20180409164543-2ab91d50f8b681a4e38370f2c94a2983.doc',
        }],
      }
    });
  },



  /**
   *
   * 新增版本
   * /sys/appversion/save
   * @param  {string}  versionNum   版本号
   * @param  {string}  versionDesc  版本描述
   * @param  {string}  fileToken    版本文件
   */
  "POST /sys/appversion/save": (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
    });
  },


  /**
   *
   * 编辑版本
   * /sys/appversion/update
   * @param  {string}  id              版本ID
   * @param  {string}  versionNum      版本号
   * @param  {string}  versionDesc     版本描述
   * @param  {string}  fileToken       版本文件
   */
  "POST /sys/appversion/update": (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
    });
  },



  /**
   *
   * 删除版本
   * /sys/appversion/delete
   * @param  {string}  id              版本ID
   */
  "POST /sys/appversion/delete": (req, res) => {
    res.send({
      trace_id: '15d9733dc1fe4072005ac112a01717a',
      request_id: '15d9733dc1fe4772002ac112a01715c',
      error_info: '执行成功',
      error_no: '0',
    });
  },

};
